package com.example.personnel_oa.dubbo;

import com.example.comment_oa.dubbo.JobServiceDubbo;
import com.example.comment_oa.pojos.Jobrequirements;
import com.example.personnel_oa.service.JobrequirementsService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class JobServiceDubboImpl implements JobServiceDubbo {
    @Resource
    JobrequirementsService jobrequirementsService;


    @Override
    public int addjob(Jobrequirements job) {
        int addjob = jobrequirementsService.addjob(job);
        return addjob;
    }
    //流程审批成功
    @Override
    public int jobStatus(String jobPostname, String jobBianhao) {
        int i = jobrequirementsService.jobStatus(jobPostname, jobBianhao);
        return i;
    }

    //流程审批失败
    @Override
    public int jobStatuss(String jobPostname, String jobBianhao) {
        int i = jobrequirementsService.jobStatuss(jobPostname, jobBianhao);
        return i;
    }
}
